/*
 * Pair.hh
 *
 *  Created on: 26/05/2010
 *      Author: prodrig
 */

#ifndef PAIR_HH_
#define PAIR_HH_

#include "ICollectible.h"
#include "IKey.h"
#include <string>

using std::string;

class Pair: public ICollectible {
private:
	ICollectible* value;
	IKey* key;
public:
	Pair();
	Pair(IKey*,ICollectible*);
	IKey* getKey();
	ICollectible* getValue();
	virtual string toString();
	virtual bool same(ICollectible *);
	void setValue(ICollectible*);
	virtual ~Pair();
};

#endif /* PAIR_HH_ */
